<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>login.jsp</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
   <div id=nav><a href="index.jsp">返回首页</a></div>
   
   <div id=mainFram>
   <form name="form1" method="post" action="loginAction"><!--form表单提交地址命名时要为*action-->
   <TABLE id=newpost cellSpacing=0 cellPadding=0 summary=post>
	<thead>
	<TR>
    <TD colspan="2"><font color="red"><s:actionmessage/></font></TD>
  	</TR>
  	</thead>
  <TR>
    <TH>用户名</TH>
    <TD><input type="text" name="username" value="${request.username}"></TD>
  </TR>
  <TR>
	<TH>密码</TH>
    <TD><input type="password" name="password"></TD>
  </TR>
     <TR>
	      <TD colspan="2" align="center"><input type="submit" value="登录">
          <input type="reset"  value="重置"></TD>
  </TR>
</TABLE>
</form></div>
  </body>
</html>
